nerdctl 库
Containerd 的 Docker 代替工具
安装
镜像加速 https://blog.csdn.net/IOT_AI/article/details/131975562 https://help.aliyun.com/zh/acr/user-guide/accelerate-the-pulls-of-docker-official-images
systemctl restart containerd
使用
登录
nerdctl login <image>
打包成镜像
nerdctl build -t <image_name> <filepath>
打标签
nerdctl tag [imageId] <image>:[tag]
推送镜像
nerdctl push <image>:[tag]
拉镜像
nerdctl pull <image>
运行容器
nerdctl run <image>
docker-compose
- 启动服务
nerdctl compose up
- 停止并删除服务
nerdctl compose down
- 显示服务状态
nerdctl compose ps
- 启动服务,并在启动完成后退出
nerdctl compose start
- 停止服务,但不删除服务
nerdctl compose stop